<template>
  <div class="hearder">
    <div class="log">
      <span class="iconfont icon-new1"></span>
    </div>
    <div class="search" @click="$router.push('/search')">
      <span class="iconfont icon-sousuo">搜索新闻</span>
    </div>
    <div class="user" @click="$router.push('/personalindex')">
      <span class="iconfont icon-wodedangxuan"></span>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.hearder {
  height: 13.889vw;
  background-color: red;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  .log {
    color: #fff;
    .icon-new1 {
      font-size: 5.556vw;
    }
  }
  .search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58.333vw;
    height: 9.444vw;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.4);
    flex: 1;
    border-radius: 5.556vw;
  }
  .user {
    margin-left: 6.944vw;
    margin-right: 1.111vw;
    color: #fff;
    .icon-wodedangxuan {
      font-size: 6.111vw;
    }
  }
}
</style>
